export interface EmotionStimulus {
  id: number;
  type: 'facial_expression' | 'body_language' | 'voice_tone' | 'social_scenario' | 'micro_expression';
  emotion: 'happiness' | 'sadness' | 'anger' | 'fear' | 'surprise' | 'disgust' | 'neutral' | 'contempt' | 'pride' | 'shame';
  description: string;
  intensity: 'low' | 'medium' | 'high';
  context?: string;
  options: string[];
  correct: number;
  difficulty: 'easy' | 'medium' | 'hard';
}

export const EMOTION_SCENARIOS: EmotionStimulus[] = [
  {
    id: 1,
    type: 'facial_expression',
    emotion: 'happiness',
    description: '一个人嘴角上扬，眼角有细纹，整个面部表情轻松',
    intensity: 'high',
    options: ['高兴', '悲伤', '愤怒', '惊讶'],
    correct: 0,
    difficulty: 'easy'
  },
  {
    id: 2,
    type: 'facial_expression',
    emotion: 'sadness',
    description: '眉毛内侧上扬，嘴角下垂，眼神黯淡',
    intensity: 'medium',
    options: ['高兴', '悲伤', '恐惧', '厌恶'],
    correct: 1,
    difficulty: 'easy'
  },
  {
    id: 3,
    type: 'facial_expression',
    emotion: 'anger',
    description: '眉毛下压，眼睛眯起，嘴唇紧闭，下颌紧张',
    intensity: 'high',
    options: ['愤怒', '惊讶', '高兴', '中性'],
    correct: 0,
    difficulty: 'medium'
  },
  {
    id: 4,
    type: 'facial_expression',
    emotion: 'fear',
    description: '眼睛睁大，眉毛上扬，嘴巴微张',
    intensity: 'medium',
    options: ['恐惧', '惊讶', '愤怒', '悲伤'],
    correct: 0,
    difficulty: 'medium'
  },
  {
    id: 5,
    type: 'facial_expression',
    emotion: 'surprise',
    description: '眉毛高高扬起，眼睛睁得很大，嘴巴张开成O形',
    intensity: 'high',
    options: ['惊讶', '恐惧', '高兴', '愤怒'],
    correct: 0,
    difficulty: 'easy'
  },
  {
    id: 6,
    type: 'facial_expression',
    emotion: 'disgust',
    description: '鼻子皱起，上嘴唇上扬，好像闻到了什么不好的味道',
    intensity: 'medium',
    options: ['厌恶', '愤怒', '悲伤', '恐惧'],
    correct: 0,
    difficulty: 'medium'
  },
  {
    id: 7,
    type: 'facial_expression',
    emotion: 'contempt',
    description: '一侧嘴角略微上扬，带有轻蔑的神情',
    intensity: 'low',
    options: ['轻蔑', '高兴', '愤怒', '中性'],
    correct: 0,
    difficulty: 'hard'
  },
  {
    id: 8,
    type: 'micro_expression',
    emotion: 'fear',
    description: '瞬间闪过的恐惧表情：眼睛快速睁大后恢复正常',
    intensity: 'low',
    options: ['恐惧', '惊讶', '中性', '愤怒'],
    correct: 0,
    difficulty: 'hard'
  },
  {
    id: 9,
    type: 'body_language',
    emotion: 'anger',
    description: '双手叉腰，身体前倾，肩膀紧张上耸',
    intensity: 'medium',
    context: '会议室讨论',
    options: ['愤怒', '自信', '紧张', '高兴'],
    correct: 0,
    difficulty: 'medium'
  },
  {
    id: 10,
    type: 'body_language',
    emotion: 'sadness',
    description: '低着头，肩膀下垂，双手环抱自己',
    intensity: 'high',
    context: '公园长椅',
    options: ['悲伤', '思考', '疲惫', '寒冷'],
    correct: 0,
    difficulty: 'easy'
  },
  {
    id: 11,
    type: 'body_language',
    emotion: 'pride',
    description: '挺胸抬头，双手背在身后，步伐自信',
    intensity: 'high',
    context: '颁奖典礼',
    options: ['骄傲', '紧张', '愤怒', '疲惫'],
    correct: 0,
    difficulty: 'medium'
  },
  {
    id: 12,
    type: 'social_scenario',
    emotion: 'shame',
    description: '在众人面前出错后，低头避开眼神接触，脸红',
    intensity: 'high',
    context: '公开演讲',
    options: ['羞愧', '愤怒', '悲伤', '紧张'],
    correct: 0,
    difficulty: 'medium'
  },
  {
    id: 13,
    type: 'social_scenario',
    emotion: 'happiness',
    description: '收到意外好消息时，眼睛发亮，忍不住笑出声',
    intensity: 'high',
    context: '办公室',
    options: ['高兴', '惊讶', '紧张', '困惑'],
    correct: 0,
    difficulty: 'easy'
  },
  {
    id: 14,
    type: 'voice_tone',
    emotion: 'anger',
    description: '声音提高，语速加快，语调急促且有力',
    intensity: 'high',
    context: '电话通话',
    options: ['愤怒', '兴奋', '紧张', '高兴'],
    correct: 0,
    difficulty: 'medium'
  },
  {
    id: 15,
    type: 'voice_tone',
    emotion: 'sadness',
    description: '声音低沉，语速缓慢，语调下降',
    intensity: 'medium',
    context: '个人对话',
    options: ['悲伤', '疲惫', '思考', '平静'],
    correct: 0,
    difficulty: 'medium'
  },
  {
    id: 16,
    type: 'social_scenario',
    emotion: 'fear',
    description: '听到奇怪声音后，身体僵硬，眼神四处张望',
    intensity: 'medium',
    context: '夜晚独自在家',
    options: ['恐惧', '好奇', '愤怒', '困惑'],
    correct: 0,
    difficulty: 'easy'
  },
  {
    id: 17,
    type: 'micro_expression',
    emotion: 'disgust',
    description: '瞬间皱鼻和抬起上唇，随即恢复礼貌表情',
    intensity: 'low',
    context: '社交聚会',
    options: ['厌恶', '困惑', '思考', '中性'],
    correct: 0,
    difficulty: 'hard'
  },
  {
    id: 18,
    type: 'facial_expression',
    emotion: 'neutral',
    description: '面部肌肉放松，没有明显的情绪表达',
    intensity: 'medium',
    options: ['中性', '悲伤', '愤怒', '思考'],
    correct: 0,
    difficulty: 'medium'
  },
  {
    id: 19,
    type: 'body_language',
    emotion: 'fear',
    description: '后退一步，双手护在胸前，眼神回避',
    intensity: 'medium',
    context: '陌生环境',
    options: ['恐惧', '防御', '害羞', '寒冷'],
    correct: 0,
    difficulty: 'medium'
  },
  {
    id: 20,
    type: 'social_scenario',
    emotion: 'surprise',
    description: '突然收到礼物，瞪大眼睛，手捂嘴巴',
    intensity: 'high',
    context: '生日聚会',
    options: ['惊讶', '高兴', '困惑', '紧张'],
    correct: 0,
    difficulty: 'easy'
  },
  {
    id: 21,
    type: 'facial_expression',
    emotion: 'pride',
    description: '微微仰起下巴，眼神自信，嘴角轻微上扬',
    intensity: 'medium',
    options: ['骄傲', '轻蔑', '高兴', '自信'],
    correct: 0,
    difficulty: 'hard'
  },
  {
    id: 22,
    type: 'voice_tone',
    emotion: 'happiness',
    description: '声音明亮，语调上扬，带有笑意',
    intensity: 'high',
    context: '朋友聚会',
    options: ['高兴', '兴奋', '紧张', '惊讶'],
    correct: 0,
    difficulty: 'easy'
  },
  {
    id: 23,
    type: 'micro_expression',
    emotion: 'anger',
    description: '瞬间眉毛下压，眼神锐利，随即恢复正常表情',
    intensity: 'low',
    context: '正式场合',
    options: ['愤怒', '困惑', '专注', '中性'],
    correct: 0,
    difficulty: 'hard'
  },
  {
    id: 24,
    type: 'body_language',
    emotion: 'shame',
    description: '垂头丧气，肩膀内收，试图让自己看起来更小',
    intensity: 'high',
    context: '被批评后',
    options: ['羞愧', '悲伤', '疲惫', '思考'],
    correct: 0,
    difficulty: 'medium'
  },
  {
    id: 25,
    type: 'social_scenario',
    emotion: 'contempt',
    description: '对某人的话报以冷笑，眼神轻蔑地看着对方',
    intensity: 'medium',
    context: '争论中',
    options: ['轻蔑', '愤怒', '困惑', '不同意'],
    correct: 0,
    difficulty: 'hard'
  },
  // 增加更多样化的情绪场景
  {
    id: 26,
    type: 'micro_expression',
    emotion: 'happiness',
    description: '瞬间露出真诚的笑容，眼角出现细纹，随即恢复严肃表情',
    intensity: 'low',
    context: '商务会议',
    options: ['高兴', '紧张', '中性', '困惑'],
    correct: 0,
    difficulty: 'hard'
  },
  {
    id: 27,
    type: 'body_language',
    emotion: 'disgust',
    description: '身体后倾，双手推开，脸部表情厌恶',
    intensity: 'high',
    context: '餐厅用餐',
    options: ['厌恶', '恐惧', '愤怒', '惊讶'],
    correct: 0,
    difficulty: 'medium'
  },
  {
    id: 28,
    type: 'facial_expression',
    emotion: 'shame',
    description: '低头垂眼，脸颊泛红，眉毛内侧上扬',
    intensity: 'medium',
    options: ['羞愧', '悲伤', '思考', '疲惫'],
    correct: 0,
    difficulty: 'medium'
  },
  {
    id: 29,
    type: 'social_scenario',
    emotion: 'neutral',
    description: '在会议中保持专业态度，表情平静，既不赞同也不反对',
    intensity: 'medium',
    context: '工作会议',
    options: ['中性', '思考', '不满', '赞同'],
    correct: 0,
    difficulty: 'medium'
  },
  {
    id: 30,
    type: 'voice_tone',
    emotion: 'fear',
    description: '声音颤抖，音调升高，语速变快且不稳定',
    intensity: 'high',
    context: '紧急情况',
    options: ['恐惧', '兴奋', '愤怒', '紧张'],
    correct: 0,
    difficulty: 'easy'
  }
];

export const EMOTION_CATEGORIES = {
  basic: ['happiness', 'sadness', 'anger', 'fear', 'surprise', 'disgust', 'neutral'],
  complex: ['contempt', 'pride', 'shame'],
  all: ['happiness', 'sadness', 'anger', 'fear', 'surprise', 'disgust', 'neutral', 'contempt', 'pride', 'shame']
};

export const EMOTION_NAMES = {
  happiness: '高兴',
  sadness: '悲伤',
  anger: '愤怒',
  fear: '恐惧',
  surprise: '惊讶',
  disgust: '厌恶',
  neutral: '中性',
  contempt: '轻蔑',
  pride: '骄傲',
  shame: '羞愧'
};

export const CONTEXT_DESCRIPTIONS = {
  'facial_expression': '面部表情',
  'body_language': '身体语言',
  'voice_tone': '语音语调',
  'social_scenario': '社交情境',
  'micro_expression': '微表情'
};